// 导出类
class User {

    constructor(id, name) {
        this.id = id;
        this.name = name;
    }

    getInfo() {
        console.log(`id:${this.id},name:${this.name}`)
    }
}
// 导出函数
let nowTime = () => new Date().toLocaleString();

export {
    User,
    nowTime
}